package com.wzx.ptplatform.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 紫煦桉
 */
public class MapUtils {

    public static Map<String, Object> initializeMap() {
        Map<String, Object> map = new HashMap<>(16);
        map.put("msg", "error");
        map.put("code", 1);
        return map;
    }

    public static void successMap(Map<String, Object> map) {
        map.put("msg", "ok");
        map.put("code", 0);
    }
}
